namespace Gadgeteer.Modules.Sytech
{
    /// <summary>
    /// Interface to the SD Card functions of the Gadgeteer Module
    /// </summary>
    public interface ISDCardModule
    {
        /// <summary>
        /// SD Card Media Changed event
        /// Fired when SD card inserted or ejected
        /// </summary>
        event EthernetSD.MediaChangeHandler OnMediaChanged;

        /// <summary>
        /// Property
        /// True if a SD card is inserted, false if not
        /// </summary>
        bool CardInserted { get; }

        /// <summary>
        /// Property
        /// Returns the current SD Card object
        /// Null if no card inserted
        /// </summary>
        StorageDevice SDCard { get; }
    }
}